package com.hx.miniblog.exception;


import com.hx.miniblog.util.constant.Constant;

/**
 * @author wenhao hu
 * @title: MiniBlogException
 * @projectName miniBlog
 * @description: TODO
 * @date 2021/12/2811:02
 */
public class MiniBlogException extends RuntimeException{
    private String code = Constant.HTTP_CODE.FAIL;
    private final String msg;

    public MiniBlogException(final String message){
        this.msg = message;
    }

    public MiniBlogException(String code ,final String message){
        this.msg = message;
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
